/**
 * Ingenius-Group S.A.S
 *
 * Project: SAU
 * File: EditAssignedInstrumentEvent.java
 * Date: 08/02/2011
 */

package com.ingenius.sau.client.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.ingenius.sau.client.event.EditAssignedInstrumentEvent.EditAssignedInstrumentEventHandler;

/**
 * Class <strong>EditAssignedInstrumentEvent</strong>
 * 
 * @author Jesus David
 * @version 0.1
 */
public class EditAssignedInstrumentEvent extends
		GwtEvent<EditAssignedInstrumentEventHandler> {

	public interface EditAssignedInstrumentEventHandler extends EventHandler {

		void onEditAssignedInstrument(EditAssignedInstrumentEvent event);
	}

	public static Type<EditAssignedInstrumentEventHandler> TYPE = new Type<EditAssignedInstrumentEventHandler>();

	private final String assignedInstrumentId;

	public EditAssignedInstrumentEvent(String assignedInstrumentId) {
		this.assignedInstrumentId = assignedInstrumentId;
	}

	public String getAssignedInstrumentId() {
		return assignedInstrumentId;
	}

	@Override
	public Type<EditAssignedInstrumentEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(EditAssignedInstrumentEventHandler handler) {
		handler.onEditAssignedInstrument(this);
	}

}
